package com.jichangxiu.system.entity.po;

import com.baomidou.mybatisplus.annotation.*;
import com.jichangxiu.common.entity.po.BaseEntity;
import com.jichangxiu.system.entity.bo.SysPowerBo;
import com.jichangxiu.system.entity.vo.SysPowerVo;
import io.github.linpeilie.annotations.AutoMapper;
import io.github.linpeilie.annotations.AutoMappers;
import lombok.*;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * SysPower: sys_power 系统权限表
 *
 * @author JiChangXiu
 * @create 2024-06-28 13:44:36
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("sys_power")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@AutoMappers({
        @AutoMapper(target = SysPowerBo.class, reverseConvertGenerate = false),
        @AutoMapper(target = SysPowerVo.class, reverseConvertGenerate = false)
})
public class SysPower extends BaseEntity {

    /**
     * ID
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 权限标识
     */
    @TableField(value = "code")
    private String code;

    /**
     * 请求地址
     */
    @TableField(value = "action")
    private String action;

    /**
     * 菜单ID
     */
    @TableField(value = "menu_id")
    private String menuId;

    /**
     * 排序
     */
    @TableField(value = "sort")
    private BigDecimal sort;

    /**
     * 是否删除
     */
    @TableLogic
    @TableField(value = "deleted")
    private Long deleted;

}